// src/main/java/com/neusoft/SPNursingHome/po/ClientMealInfo.java
package com.neusoft.SPNursingHome.po;

import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 用于承载三表查询结果：客户姓名 + 食物类型 + 食物名称 + 菜单日期 + 用餐记录日期
 */
@TableName("meal_record")
public class ClientMealInfo extends MealRecord{
    private Integer mealCalendarId;


    /** 客户姓名 */
    private String clientName;

    /** 食物类型 */
    private String foodType;

    /** 食物名称 */
    private String foodName;

    /** 菜单上的日期（来自 mealcalendar 表） */
    private String mealCalendarDate;
    private String mealCalendarTime;

    public String getMealCalendarTime() {
        return mealCalendarTime;
    }

    public void setMealCalendarTime(String mealCalendarTime) {
        this.mealCalendarTime = mealCalendarTime;
    }

    /** 用餐记录的实际日期（来自 mealrecord 表） */
    private LocalDate mealCalendarDay;

    public ClientMealInfo() {}

    public ClientMealInfo(String clientName, String foodType, String foodName,
                          String mealCalendarDate, LocalDate mealCalendarDay) {
        this.clientName          = clientName;
        this.foodType            = foodType;
        this.foodName            = foodName;
        this.mealCalendarDate    = mealCalendarDate;
        this.mealCalendarDay     = mealCalendarDay;
    }

    // --- Getter & Setter ---

    public String getClientName() {
        return clientName;
    }
    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getFoodType() {
        return foodType;
    }
    public void setFoodType(String foodType) {
        this.foodType = foodType;
    }

    public String getFoodName() {
        return foodName;
    }
    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getMealCalendarDate() {
        return mealCalendarDate;
    }
    public void setMealCalendarDate(String mealCalendarDate) {
        this.mealCalendarDate = mealCalendarDate;
    }

    public LocalDate getMealCalendarDay() {
        return mealCalendarDay;
    }
    public void setMealCalendarDay(LocalDate mealCalendarDay) {
        this.mealCalendarDay = mealCalendarDay;
    }

    public Integer getMealCalendarId() {
        return mealCalendarId;
    }

    public void setMealCalendarId(Integer mealCalendarId) {
        this.mealCalendarId = mealCalendarId;
    }
    @Override
    public String toString() {
        return "ClientMealInfo{" +
                "clientName='" + clientName + '\'' +
                ", foodType='" + foodType + '\'' +
                ", foodName='" + foodName + '\'' +
                ", mealCalendarDate=" + mealCalendarDate +
                ", mealCalendarDay=" + mealCalendarDay +
                '}';
    }
}
